package com.lyf.base.collection;

import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @AUTHOR LYF
 * @DATE 2022/2/8
 * @VERSION 1.0
 * @DESC
 */
public class CollectionApiDemo {
    public static void main(String[] args) {
        System.out.println(10>>1);
    }
    // 对比ArrayList与LinkedList
    static void testSpeed(){
        new ArrayList<>();
        new LinkedList<>();
        new HashSet<>();
        new HashMap<>();
        new ConcurrentHashMap<>();
        new ReentrantLock();// hello
    }
}
